
const httpConfig = function($httpProvider) {
  $httpProvider.defaults.useXDomain = true;
  $httpProvider.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencodedcharset=utf-8";
  delete $httpProvider.defaults.headers.common["X-Requested-With"];
};

const locationConfig = function($urlRouterProvider, $locationProvider) {
  $locationProvider.html5Mode(false);
  $locationProvider.hashPrefix("");
  $urlRouterProvider.otherwise("#/home");
};


export { httpConfig, locationConfig };